import request from '@/utils/request';
/**
 * 查询用户信息
 * @param {*} data 
 * @returns 
 */
export function queryUserInfo(data,currentPage,pageSize){
    return request({
        url:'/user/queryUserInfo',
        method:'post',
        data,
        params:{
            currentPage,
            pageSize
        }
    })
}
//保存（修改）用户信息
export function saveUserInf(data){
    return request({
        url:'/user/saveUserInfo',
        method:'post',
        data
    })
}
//删除用户信息
export function deleteUserInf(data){
    return request({
        url:'/user/deleteUserInfo',
        method:'post',
        data
    })
}
//登录方法
export function login(data){
    return request({
        url:'/user/login',
        method:'post',
        data
    })
}
//注册方法
export function register(data){
    return request({
        url:'/user/register',
        method:'post',
        data
    })
}